The Editable Text Selection Structure
NEW WITH THE APPEARANCE MANAGER
You can pass a pointer to the editable text selection structure toGetControlData
andSetControlData
to access and set the current selection range in an editable text control.An editable text selection structure is of type
ControlEditTextSelectionRec
:
struct ControlEditTextSelectionRec { SInt16 selStart; SInt16 selEnd; }; typedef struct ControlEditTextSelectionRec ControlEditTextSelectionRec; typedef ControlEditTextSelectionRec *ControlEditTextSelectionPtr;
Field Description
selStart
- A signed 16-bit integer indicating the beginning of the editable text selection.
selEnd
- A signed 16-bit integer indicating the end of the editable text selection.